<%@page contentType="text/html" pageEncoding="UTF-8"%>

<%@taglib prefix="f" uri="http://java.sun.com/jsf/core"%>
<%@taglib prefix="h" uri="http://java.sun.com/jsf/html"%>
<%@taglib prefix="t" uri="http://myfaces.apache.org/tomahawk"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
   "http://www.w3.org/TR/html4/loose.dtd">

<f:view>
    <%@include file="../WEB-INF/jspf/html_inicio.jspf" %>
    <%@include file="../WEB-INF/jspf/cabecera.jspf" %>
    <%@include file="../WEB-INF/jspf/navbar.jspf" %>
    <%@include file="../WEB-INF/jspf/cuadro_inicio.jspf" %>
    <%@include file="../WEB-INF/jspf/menu_principal.jspf" %>
    <%@include file="../WEB-INF/jspf/cuadro_medio.jspf" %>
    <%@include file="../WEB-INF/jspf/bloque_inicio.jspf" %>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
          <link rel=stylesheet type="text/css" href="/edu.upn.sigeadmi.cxc-war/style.css">

    </head>
    <body>
                  <h3><h:outputText value="Tasa de Interes "/></h3>
         <h:form id="frmListar">
             <h:commandButton id="btnNuevo" value="Nuevo" action="#{TasaInteresController.nuevo}"/>
         <h:dataTable id="tblTasaInteres"
                      var="tasainteres"
                      value="#{TasaInteresController.tasaIntereses}"
                      border="1"
                      cellpadding="0"
                      cellspacing="0"
                      headerClass="headerAlignment"
columnClasses="Columnauno"
                      >
                    <h:column>
                        <f:facet name="header"><h:outputText value="Codigo"/></f:facet>
                        <h:outputText value="#{tasainteres.pkTasaInteres}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header"><h:outputText value="Descripcion"/></f:facet>
                        <h:outputText value="#{tasainteres.descripcion}"/>
                    </h:column>
                    <h:column>
                        <f:facet name="header"><h:outputText value="periodoTiempo" /></f:facet>
                        <h:outputText value="#{tasainteres.periodoTiempo}" />
                    </h:column>
                     <h:column>
                        <f:facet name="header"><h:outputText value="Tasa" /></f:facet>
                        <h:outputText value="#{tasainteres.tasa}" />
                    </h:column>

                    <h:column>
                        <f:facet name="header"></f:facet>
                        <h:commandButton id="btnEditar" value="Editar" image="/RegPago/IMGS/Editar.png" action="#{TasaInteresController.edita}">
                            <f:setPropertyActionListener value="#{tasainteres}" target="#{TasaInteresController.tasainteres}" />
                        </h:commandButton>
                    </h:column>
                    <h:column>
                        <f:facet name="header"></f:facet>
                        <h:commandButton id="btnEliminar" image="/RegPago/IMGS/Borra.png" value="Eliminar" action="#{TasaInteresController.eliminar}">
                            <f:setPropertyActionListener value="#{tasainteres}" target="#{TasaInteresController.tasainteres}" />
                        </h:commandButton>
                    </h:column>
                    <h:column>
                        <f:facet name="header"></f:facet>
                        <h:commandButton id="btnMostrar" image="/RegPago/IMGS/Mostrar.png" value="Mostrar" action="#{TasaInteresController.mostrar}">
                            <f:setPropertyActionListener value="#{tasainteres}" target="#{TasaInteresController.tasainteres}" />
                        </h:commandButton>
                    </h:column>

                </h:dataTable>
             </h:form>
          <div class="centrar">
            <a href="#"><img src="/edu.upn.sigeadmi.cxc-war/img/logo_ta_resize.png" border="0"/></a>
        </div>
       <%@include file="../WEB-INF/jspf/bloque_fin.jspf" %>
    <%@include file="../WEB-INF/jspf/cuadro_fin.jspf" %>
    <%@include file="../WEB-INF/jspf/pie.jspf" %>
    <%@include file="../WEB-INF/jspf/html_fin.jspf" %>

    </body>
</html>
</f:view>